import 'package:bwt_ad_flutter/ad/BwtAd.dart';

class BwtExpressAd extends BwtAd {
  final double adWidth;
  double adHeight = 0;
  bool adClosed = false;

  BwtExpressAd({
    required super.adId,
    required super.adLoaderId,
    required this.adWidth,
  });

  bool refreshAdClosed() {
    if (!adClosed) {
      adClosed = true;
      return true;
    }
    return false;
  }

  bool refreshAdHeight(double height) {
    if (adHeight != height) {
      adHeight = height;
      return true;
    }
    return false;
  }
}
